import request from '@/utils/request'

// 查询附近药店列表
export function listDili(query) {
  return request({
    url: '/zhongyao/dili/list',
    method: 'get',
    params: query
  })
}

// 查询附近药店详细
export function getDili(dKey) {
  return request({
    url: '/zhongyao/dili/' + dKey,
    method: 'get'
  })
}

export function jsonDta(name) {
  return request({
    url: '/zhongyao/dili/jsonDta?name=' + name,
    method: 'get'
  })
}
// 查询附近药店详细
export function landlist(name) {
  return request({
    url: 'qq/ws/place/v1/search?key=YK4BZ-HVOED-RJW47-PVGFF-JC5GE-NLBFH&boundary=region(吉林市,0)&keyword="人民医院',
    method: 'get'
  })
}
// 新增附近药店
export function addDili(data) {
  return request({
    url: '/zhongyao/dili',
    method: 'post',
    data: data
  })
}

// 修改附近药店
export function updateDili(data) {
  return request({
    url: '/zhongyao/dili',
    method: 'put',
    data: data
  })
}

// 删除附近药店
export function delDili(dKey) {
  return request({
    url: '/zhongyao/dili/' + dKey,
    method: 'delete'
  })
}
